import request from '@/utils/request'

const BASEURL = '/admin/core/integral-grade'

export function findAll() {
  return request({
    url: `${BASEURL}/list`,
    method: 'get',
  })
}

export function deleteById(id) {
  return request({
    url: `${BASEURL}/remove/${id}`,
    method: 'delete',
  })
}

export function save(integralGrade) {
  return request({
    url: `${BASEURL}/save`,
    method: 'post',
    data: integralGrade,
  })
}

export function getById(id) {
  return request({
    url: `${BASEURL}/getById/${id}`,
    method: 'get',
  })
}

export function update(integralGrade) {
  return request({
    url: `${BASEURL}/update`,
    method: 'put',
    data: integralGrade,
  })
}
